package server.util.InfoUtils;

public enum InfoEnum {
    /**
     * API调用成功返回
     */
    SUCCESS(0, "success!!"),
    FAIL(-1, "请求失败"),
    LOGIN_FAIL(-2, "登陆失败"),
    AUTH_ERROR(-3, "认证失败"),
    PARAMS_NULL(-4, "请求字段不能为空");

    private int code;

    private String message;


    private InfoEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
